{% extends "header.html" %}

{% block content %}
<div id="detail">
    <div id="name"><p>{{item.name}}</p></div>
    <div id="detaildesc">
        <div id="itempic">
            <a href="/item/img?pid={{item.pid}}"><img src="/item/img?pid={{item.pid}}" /></a>
        </div>
        <div id="attrs">
            <div class="attr">
                <p>价格：&nbsp;&nbsp;
                <span id="price">{{item.price}}</span>
                </p>
            </div>
            <div class="attr">
                <p>标签：&nbsp;&nbsp; {% if not item.tags %}无标签{% else %}{{item.tags}}  {% endif %}<p>
            </div>
            <div class="attr">
                <p>发布时间：&nbsp;&nbsp; {{item.pdate}}<p>
            </div>
            <div class="attr">
                <p>描述:</p>
                <p class="desc">
                    {{item.descpt}}
                </p>
            </div>
            <div class="buy">
                <p>
                <a href="/order?pid={{item.pid}}"><button type="button" class="btn btn-primary btn-large">购买</button> 
                </a>
                </p>
            </div>
        </div>
    </div>
        
</div>

{% endblock %}
